package com.woniu.springboot.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniu.springboot.dao.StudentDao2;
import com.woniu.springboot.entity.Student;
import com.woniu.springboot.service.Student2Service;
@Service
public class Student2ServiceImpl implements Student2Service{
	@Autowired
	StudentDao2 studentDao2;
	
	@Override
	public List<Student> getStudents() {
		List<Student> students = studentDao2.findAll();
		return students;
	}

}
